package com.njxzc.igo.Dao;

import java.util.List;

import com.njxzc.igo.model.User;
import com.njxzc.igo.model.UserType;

public interface UserDao {
	public void save(User user,UserType ut);
	
	public User findByName(String name);
	
	public UserType findByTypeId(int typeId);
	
	public List<User> findAll();
	
	public boolean updateUserByPassword (String password,User u );
	
	public List loadUserVo(String username);

	public List<UserType> findAllUserTypes();

	public boolean modifyUserTypes(User u, UserType ut);

	public User findById(String userId);

	public void saveSaller(User user,String saler_Name);
}
